//
//  BasicInfoHeadView.m
//  Estate
//
//  Created by heyong on 16/6/23.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "BasicInfoHeadView.h"

@implementation BasicInfoHeadView
- (UILabel *)title{
    if(_title==nil){
        _title=[[UILabel alloc]init];
    }
    return _title;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.title];
        self.title.frame=CGRectMake(5, 8, DEF_WIDTH(self)-5, 8);
        self.title.font=[UIFont systemFontOfSize:14.];
        self.title.textColor=[UIColor colorWithRed:0.12 green:0.61 blue:0.56 alpha:1.00];
        self.backgroundColor=[UIColor colorWithRed:0.95 green:0.96 blue:0.96 alpha:1.00];
        UIImageView *image=[[UIImageView alloc]initWithFrame:CGRectMake(0, DEF_HEIGHT(self)-8, DEF_WIDTH(self), 8)];
        [self addSubview:image];
        image.image=[UIImage imageNamed:@"juchixia"];
    }
    return self;
}

@end
